<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class c_index extends CI_Controller {

	function __construct(){
		parent::__construct();	
		$this->load->model("m_public_function");
		checkLogin();
	}
	
	function index(){
		$data['main_menus'] = $this->m_public_function->_main_menus();
		$data['menus'] = $this->m_public_function->_menus();
		$data['navbar'] = $this->load->view('v_navbar',null,true);
		// $data['content'] = $this->load->view('v_groups',null,true);
		$this->load->view('v_main',$data);
	}

}